﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using QLHREntities;

namespace QLHuongRungDAO
{
    public class NhaCungCapDAO
    {
        private QLHuongRungEntities db = new QLHuongRungEntities();
        public List<NhaCungCap> LayDanhSachNhaCungCap()
        {
            List<NhaCungCap> result = new List<NhaCungCap>();
            var data = from td in db.NhaCungCaps
                       select td;
            if (data != null)
                result = data.ToList();
            return result;
        }
    }
}
